package com.ct.lotterysystem2.service.impl;

import com.ct.lotterysystem2.common.utils.JacksonUtil;
import com.ct.lotterysystem2.controller.param.DrawPrizeParam;
import com.ct.lotterysystem2.dao.mapper.WinningRecordMapper;
import com.ct.lotterysystem2.service.DrawPrizeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.Map;
import java.util.UUID;

@Service
public class DrawPrizeServiceImpl implements DrawPrizeService {

    @Autowired
    private WinningRecordMapper winningRecordMapper;

    @Override
    public void drawPrize(DrawPrizeParam param) {

        Map<String, String> map = new HashMap<>();
        map.put("messageId", String.valueOf(UUID.randomUUID()));
        map.put("messageData", JacksonUtil.writerValueAsString(param));


    }
}
